package com.yanqu.road.server.gameplayer.module.activity.tomb.business;

import com.yanqu.road.server.gameplayer.module.activity.tomb.dao.UserTombInfoDaoImpl;
import com.yanqu.road.server.gameplayer.module.activity.tomb.dao.UserTombRelicDaoImpl;
import com.yanqu.road.server.gameplayer.module.activity.tomb.entity.DbTombInfo;
import com.yanqu.road.server.gameplayer.module.activity.tomb.entity.DbTombRelic;

import java.util.Map;

public class TombGameBusiness {


    public static DbTombInfo getDbTombInfo(long userId) {
        return UserTombInfoDaoImpl.newInstance().getData(userId);
    }

    public static DbTombInfo getDbTombInfo(long userId, int activityId) {
        return UserTombInfoDaoImpl.newInstance().getData(userId, activityId);
    }

    public static boolean saveDbTombInfo(DbTombInfo data) {
        return UserTombInfoDaoImpl.newInstance().saveData(data);
    }


    public static Map<Integer, DbTombRelic> getDbTombRelic(long userId) {
        return UserTombRelicDaoImpl.newInstance().getDataMap(userId);
    }

    public static boolean saveDbTombRelic(DbTombRelic data) {
        return UserTombRelicDaoImpl.newInstance().saveData(data);
    }


}
